home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19970626-19970929 / 000254_news@newsmaster….columbia.edu _Wed Aug 27 14:02:23 1997.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id OAA25968
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Wed, 27 Aug 1997 14:02:23 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id OAA02765
  7.     for kermit.misc@watsun; Wed, 27 Aug 1997 14:02:23 -0400 (EDT)
  8. Path: news.columbia.edu!sol.ctr.columbia.edu!spool.mu.edu!uwm.edu!cs.utexas.edu!news.cs.utah.edu!cc.usu.edu!jrd
  9. From: jrd@cc.usu.edu (Joe Doupnik)
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: Re: storing and retrieving variables
  12. Message-ID: <8IbO7ONq1$xA@cc.usu.edu>
  13. Date: 27 Aug 97 09:59:54 MDT
  14. References: <01bcb2dc$3864a340$c13aa8c2@peters>
  15. Organization: Utah State University
  16. Lines: 26
  17. Xref: news.columbia.edu comp.protocols.kermit.misc:7570
  18.  
  19. In article <01bcb2dc$3864a340$c13aa8c2@peters>, "Gary Stainburn" <gary.stainburn@virgin.net> writes:
  20. > I can store a variable using ASK but cannot display it in any way, or
  21. > compare it using IF.  Also I cannot initialise a variable
  22. > can anyone help?
  23. > Thanks
  24. > Gary
  25. ------------
  26.     Perhaps the choice of words is getting in the way. Which Kermit,
  27. please?
  28.     ASK foobar speak>
  29.     speak> this is fluff
  30.     show macro foobar
  31.      FOOBAR = this is fluff
  32.     echo the contents of foobar are \m(foobar)
  33.      the contents of foobar are this is fluff
  34.  
  35.     A variable, foobar, is created by the ASK command. Its contents
  36. are created at the same time, which in this example is the string "this is
  37. fluff".
  38.     SHOW MAC is a quick way to list what's defined. \m(variable-name)
  39. replaces that expression with the definition string of the variable.
  40.     IF eq {\m(foobar)} {this is fluff} echo they are the same
  41. is an example of an IF statement matching strings, where { } enclose the
  42. strings.
  43.     Joe D.